package com.cmc6.user.model.dto;

import com.cmc6.common.constant.BaseRegexConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class PhoneNotBlankDTO {

    @NotBlank
    @Size(max = 100)
    @Pattern(regexp = BaseRegexConstant.PHONE)
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

}
